<?php
include('config.class.php');

if(isset($_POST['tabela']) && isset($_POST['id'])){
$tabela = $_POST['tabela'];
$id = $_POST['id'];

$conn = new CONEXAO();

$conn->Conecta();
$r = $conn->getResultAsVector("select * from $tabela where id = $id");
echo"<pre>";
print_r($r[0]);
echo"</pre>";
$conn->Desconecta();
}
echo "oq?";
?>